package com.utonw.carloan.global;


/**
 * Created by SEELE on 2017/3/21.
 */

public class Constants {
    /**
     * 主题 代码1
     */
    //橙色主题
    public static final int THEME_ORANGE = 0x11;
    //棕色主题
    public static final int THEME_BROWN = 0x12;

    /**
     * UI交互-请求码 代码2
     */
    //相册请求码
    public static final int REQUEST_ALBUM = 0x21;
    //相机请求码
    public static final int REQUEST_CAMERA = 0x22;
    //发起图片预览请求码
    public static final int REQUEST_PREVIEW_IMAGE = 0x23;

    /**
     * UI交互-返回码 代码3
     */
    //删除图片返回码
    public static final int RESULT_DELETE_IMAGE = 0x31;
    //修改图片返回码
    public static final int RESULT_CHANGE_IMAGE = 0x32;


    /**
     * 权限Intent返回码 代码4
     */
    public static final int APPLY_PERMISSION = 0x41;

    /**
     * 三方扫描回调常量 代码7
     */
    //是储蓄卡
    public static final int BANKCARD=0x71;
    //是信用卡
    public static final int CREDITCARD=0x72;
    //标记返回码
    public static final int BANKCARD_RESULT_ID=0x73;
    public static final int CREDITCARD_RESULT_ID=0x74;

    //三方操作码
    public static final int REQUEST_CODE_RESULT = 0x75;
    public static final int REQUEST_CODE_SCAN = 0x76;

    /**
     * 网络连接字段
     */
    //Token字段
    public static final String TOKEN = "token";

    //MediaType字段
    public final static String CONTENT = "application/json";

    //默认网络连接前缀
    private static final String PRE = "http://192.168.1.185:8080/api/";

    //登录 接口
    public static final String LOGIN = PRE + "user/loginForApp";

    //生成还款计划 接口
    public static final String LOANPLAN = PRE + "generateRepayPlan";

    //提交申请贷款 接口
    public static final String LOANCOMMIT = PRE + "saveCustomerMessage";


    /**
     * 广播定义
     */
    //接收申请贷款提交成功后的广播
    public static final String LOAN_COMMIT_RECEIVER="loan_commit_receiver";


}
